<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include "../common.ftl">
</head>
<body>
<form class="layui-form" style="width:80%;">
    <@shiro.user>
        <input type="hidden" name="supplierEmpid" value="<@shiro.principal property="id"></@shiro.principal> ">
    </@shiro.user>
    <div class="layui-form-item layui-row">
        <div class="layui-col-xs12">
            <label class="layui-form-label">供应商名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"
                       name="supplierName" id="supplierName" lay-verify="required" value="${(supplier.supplierName)!}"
                       placeholder="请输入供应商名称">
            </div>
        </div>
    </div>
    <!--地址 -->
    <input type="hidden" name="supplierAddress" id="supplierAddress" value="">
    <div class="layui-form-item " id="area-picker">
        <div class="layui-form-label">地址</div>
        <div class="layui-input-inline" style="width: 20%">
            <select name="province" class="province-selector" data-value="" lay-filter="province-1">
                <option value="">请选择省</option>
            </select>
        </div>
        <div class="layui-input-inline" style="width: 20%">
            <select name="city" class="city-selector" data-value="" lay-filter="city-1">
                <option value="">请选择市</option>
            </select>
        </div>
        <div class="layui-input-inline" style="width: 20%">
            <select name="county" class="county-selector" data-value="" lay-filter="county-1">
                <option value="">请选择区</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">等级</label>
        <div class="layui-input-block">
            <select name="supplierLevel" lay-verify="required">
                <option value="">请选择供应商等级</option>
                <option value="一级">一级</option>
                <option value="二级">二级</option>
                <option value="三级">三科</option>
            </select>
        </div>
    </div>

    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    id="addSupplier" lay-filter="addSupplier">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
        </div>
    </div>
</form>

</body>
<script type="text/javascript" src="${ctx}/layuimini/js/supplier/addSupplier.js"></script>

</html>

